package cn.net.xinyi.xs.dao.hr;

import java.util.List;
import java.util.Map;

import cn.net.xinyi.xs.dao.Dao;
import cn.net.xinyi.xs.model.hr.Organization;

public interface OrganDao extends Dao {

	Organization getOrgan(Long id);

	Organization getOrganWithChild(Long id);

	List<Organization> getOrgans(int skipResults, int maxResults);

	int getOrganCount();

	List<Organization> getOrganChildren(Long id);

	List<Organization> getOrganRecursionChild(Long id);

	@SuppressWarnings("unchecked")
	List<Organization> getAllBranchOrgans(Map map);

	@SuppressWarnings("unchecked")
	List<Organization> getBranchOrganByOrgCode(Map map);

	@SuppressWarnings("unchecked")
	List<Organization> getBranchOrgans(Map map, int skipResults, int maxResults);
}
